<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../bootstrap-5.1.3-dist/css/bootstrap.css">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.js"></script>
</head>

<body class="container">
    <h3 align="center">设置列的宽度</h3>
    <form>
        <div class="row">
            <div class="col-4">
                <input type="text" class="form-control" placeholder="姓名">
            </div>
            <div class="col">
                <input type="text" class="form-control" placeholder="部门">
            </div>
            <div class="col">
                <input type="text" class="form-control" placeholder="职位">
            </div>
            <div class="col">
                <input type="text" class="form-control" placeholder="薪资">
            </div>
        </div>
    </form>
</body>


</html>